threshold_expression
Configuration for Threshold Expression resource.
Read/write properties
rule<String>
Rule to execute..
occurence<Integer>
No. of time rules happened..
threshold_id<String>
Id of threshold_configuration from threshold table.
id<String>
Id is system generated key for all the Thresholds configuration .
Maximum length = 256
Operations
NOTE: In request payload, Mandatory parameters are marked red and bold.
The following parameters can be used in the nitro request :
onerror <String_value>
Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE
URL:https://<MGMT-IP>/nitro/v2/config/threshold_expression?onerror=<String_value>
HTTPS Method:POST
Request Headers:
Content-Type:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Request Payload:JSON
{"threshold_expression": {
"rule":<String_value>,
"threshold_id":<String_value>,
"occurence":<Integer_value>,
"id":<String_value>}}
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "threshold_expression":[{
"rule":<String_value>,
"occurence":<Integer_value>,
"threshold_id":<String_value>,
"id":<String_value>}]}
URL:https://<MGMT-IP>/nitro/v2/config/threshold_expression/id_value<String>
HTTPS Method:PUT
Request Headers:
Content-Type:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Request Payload:JSON
{"threshold_expression":{
"id":<String_value>,
"rule":<String_value>,
"threshold_id":<String_value>,
"occurence":<Integer_value>}}
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "threshold_expression":[{
"rule":<String_value>,
"occurence":<Integer_value>,
"threshold_id":<String_value>,
"id":<String_value>}]}
URL:https://<MGMT-IP>/nitro/v2/config/threshold_expression
Query-parameters:
filter
https://<MGMT-IP>/nitro/v2/config/threshold_expression?filter=property-name1:property-value1,property-name2:property-value2
Use this query-parameter to get the filtered set of threshold_expression resources configured on the system. You can set a filter on any property of the resource.
pagesize=#no&pageno=#no
https://<MGMT-IP>/nitro/v2/config/threshold_expression?pagesize=#no&pageno=#no
Use this query-parameter to get the threshold_expression resources in chunks.
count
https://<MGMT-IP>/nitro/v2/config/threshold_expression?count=yes
Use this query-parameter to get the count of threshold_expression resources.
HTTPS Method:GET
Request Headers:
Accept:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Headers:
Content-Type:application/json
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "threshold_expression":[{
"rule":<String_value>,
"occurence":<Integer_value>,
"threshold_id":<String_value>,
"id":<String_value>}]}
URL:https://<MGMT-IP>/nitro/v2/config/threshold_expression/id_value<String>
HTTPS Method:GET
Request Headers:
Accept:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Headers:
Content-Type:application/json
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "threshold_expression":[{
"rule":<String_value>,
"occurence":<Integer_value>,
"threshold_id":<String_value>,
"id":<String_value>}]}
URL:https://<MGMT-IP>/nitro/v2/config/threshold_expression/id_value<String>
HTTPS Method:DELETE
Request Headers:
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value> }